import storage from '@blueos.storage.storage'

export const MineKey = {
  Height: 'height',
  Weight: 'weight',
  Age: 'age',
  Gender: 'gender'
}

export const setMineInfo = (type, value) => {
  console.log({setMineInfo: 'setMineInfo', type, value})
  storage.set({
    key: type,
    value: value
  })
}

export const getMineInfo = (type) => {
  return storage.getSync({key: type})
}